import {get,post} from '../utils/request'
import {deplist} from '../utils/api'

const Apideplist = ():any => {
    return get(deplist)
}
const DeparmentsShow = (id:number):any => {
    return get('visit/department/show',{id})
}
const DeparmentsAdd = (params:any):any => {
    return post('visit/department/add',params)
}
const DeparmentsDel = (id:number):any => {
    return get('visit/department/del',{id})
}
const DeparmentsEdia = (params:any):any => {
    console.log(params);
    
    return post ('visit/department/edit',params)
}
export  {Apideplist,DeparmentsShow,DeparmentsAdd,DeparmentsDel,DeparmentsEdia}